package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款记录对象 refund_records
 * 
 * @author ruoyi
 * @date 2025-03-24
 */
public class RefundRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退款记录唯一标识符 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 关联的确认订单ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "关联的确认订单ID")
    private Long orderId;

    /** 会员ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "会员ID")
    private Long memberId;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private Long refundAmount;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String reason;

    /** 退款状态 */
    @Excel(name = "退款状态")
    private String status;

    /** 退款完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setRefundAmount(Long refundAmount) 
    {
        this.refundAmount = refundAmount;
    }

    public Long getRefundAmount() 
    {
        return refundAmount;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("memberId", getMemberId())
            .append("refundAmount", getRefundAmount())
            .append("reason", getReason())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("refundTime", getRefundTime())
            .toString();
    }
}
